using System;
using System.Diagnostics;

namespace Bing
{
    /// <summary>
    /// Contains properties related to a thumbnail returned with an <see cref="ImageResult"/> object.
    /// </summary>
    [DebuggerDisplay("({ContentType}): {Url}")]
    public class Thumbnail: IWebImage
    {
        /// <summary>
        /// Gets or sets the size, in bytes, of the full-size image file (if this information is available).
        /// </summary>
        /// <value>Size, in bytes, of the full-size image file (if this information is available).</value>
        public UInt32 FileSize { get; set; }

        /// <summary>
        /// Gets or sets the URI of the website that contains a returned image.
        /// </summary>
        /// <value>Returns the URI of the website that contains a returned image.</value>
        public string Url { get; set; }

        /// <summary>
        /// Gets or sets the width of the full-size image in pixels, if available.
        /// </summary>
        /// <value>Returns the width of the full-size image in pixels, if available.</value>
        public UInt32 Width { get; set; }

        /// <summary>
        /// Gets or sets the height of the full-size image in pixels, if available.
        /// </summary>
        /// <value>Returns the height of the full-size image in pixels, if available.</value>
        public UInt32 Height { get; set; }

        /// <summary>
        /// Gets or sets the MIME type of an image, when this information is available.
        /// </summary>
        /// <value>MIME type of an image, when this information is available.</value>
        public string ContentType { get; set; }

    }
}